﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace bxml.betterxml.xir
{

    public class XML2XIRParser
    {

        ////@SuppressWarnings("unused")
        //private Sax2BetterXmlContentHandlerAdapter handler;
        //private XMLReader xmlReader;

        //public XML2XIRParser(Sax2BetterXmlContentHandlerAdapter handler)// throws SAXException 
        //{
        //    xmlReader = XMLReaderFactory.createXMLReader();
        //    xmlReader.setContentHandler(handler);
        //    xmlReader.setErrorHandler(handler);

        //    xmlReader.setFeature("http://xml.org/sax/features/namespaces", true);
        //    xmlReader.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
        //    this.handler = handler;
        //}

        public void parse(FileInfo file) //throws SAXException, IOException 
        {
            StreamReader fileReader = file.OpenText();
            //xmlReader.parse(fileReader);
            fileReader.Close();
        }

        public void parse(String uri) //throws SAXException, IOException 
        {
           // xmlReader.parse(uri);
        }

        public void parse(StreamReader inputSource) // throws SAXException, IOException 
        {
          //  xmlReader.parse(inputSource);
        }
    }
}
